package com.banhujiu.spider.region.enties

import com.banhujiu.spider.region.conf.areaTableName

/**
 * @author banhujiu
 * @date 2017/11/19 0019 21:21
 */
class RegionEntry {
    var code: String? = null
    var name: String? = null
    var pCode: String? = null
    var level: Short? = null
    var nextUrl: String? = null

    override fun toString(): String = "RegionEntry(code=$code, name=$name, pCode=$pCode, level=$level)"

    fun toSql(): String = "INSERT INTO $areaTableName(code , name , level , p_code) VALUES ('$code' , '$name' , $level , '$pCode');\n"
}
